<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<%@include file="/WEB-INF/taglibs/common/taglibs.jsp"%>
<head>
<title><spring:message code="admin.orderfilter.title" /></title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link rel="stylesheet" href="<c:url value="/css/styles.css"/>" />

</head>

<body><%@include file="../top_menu.jsp"%>
<table width="100%">
	<tr>
		<td><c:import url="/WEB-INF/jsp/menu/view_orders_menu.jsp" />
		</td>
	</tr>
	<tr>
		<td><%@include file="/WEB-INF/jsp/include/messages.jsp"%>
		<br />
		</td>
	</tr>
</table>
<table width=70% class="formTable">

	<tr class="formHeader">
		<td colspan="3"><spring:message code="admin.orderfilter.label.filters" /></td>
	</tr>
	<tr>
		<th><spring:message code="admin.orderfilter.label.title" /></th>
		<th><spring:message code="admin.orderfilter.label.active" /></th>
		<th><spring:message code="admin.orderfilter.label.action" /></th>
	</tr>

	<tbody>
		<c:if test="${empty filterList}">
			<tr>
				<td colspan="9"><spring:message code="admin.orderfilter.label.nouserfilterswerefound" /></td>
			</tr>
		</c:if>
		<c:forEach var="filter" items="${filterList}" varStatus="i">
			<tr class="tr_record">
				<td>${filter.name}</td>
				<td>${filter.active}</td>
				<td><a href="view_orders_filters.htm?id=${filter.id}&edit=0"><spring:message code="admin.orderfilter.label.edit" /></a>
				| <a href="view_orders_filters.htm?id=${filter.id}&remove"><spring:message code="admin.orderfilter.label.remove" /></a></td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<form:form action="view_orders_filters.htm" method="post">
	<table border="0" cellpadding="4" cellspacing="1">
		<tr>
			<td>
			<button type="submit" class='ui-button ui-state-default ui-corner-all'><spring:message code="admin.orderfilter.button.addfilter" /></button>
			</td>
		</tr>
	</table>
</form:form>
<%@include file="/WEB-INF/jsp/include/footer.jsp"%>
</body>
</html>